package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the "PAYRECORD_copy" database table.
 * 
 */
@Entity
@Table(name="\"PAYRECORD_copy\"")
@NamedQuery(name="PAYRECORD_copy.findAll", query="SELECT p FROM PAYRECORD_copy p")
public class PAYRECORD_copy implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PAYRECORD_copy__PC_Id_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PAYRECORD_copy__PC_Id_GENERATOR")
	@Column(name="PC_ID")
	private long pcId;

	private String customername;
	
	private String repairordernumber;

	@Column(name="PC_BF")
	private BigDecimal pcBf;

	@Column(name="PC_CLASS")
	private String pcClass;

	@Column(name="PC_FOREIGN")
	private String pcForeign;

	@Column(name="PC_MONEY")
	private BigDecimal pcMoney;

	@Column(name="PC_OWNER")
	private String pcOwner;

	@Column(name="PC_PERIOD")
	private BigDecimal pcPeriod;

	@Column(name="PC_REMARK")
	private String pcRemark;

	@Temporal(TemporalType.DATE)
	@Column(name="PC_TIME")
	private Date pcTime;

	@Column(name="PC_TYPE")
	private String pcType;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="REPAIRORDER_ID")
	private Repairorder repairorder;

	//维修工单id
	@Transient
	private Long repairorderId;
	
	public Long getRepairorderId() {
		return repairorderId;
	}

	public void setRepairorderId(Long repairorderId) {
		this.repairorderId = repairorderId;
	}

	public Repairorder getRepairorder() {
		return repairorder;
	}

	public void setRepairorder(Repairorder repairorder) {
		this.repairorder = repairorder;
	}

	public PAYRECORD_copy() {
	}

	public long getPcId() {
		return this.pcId;
	}

	public void setPcId(long pcId) {
		this.pcId = pcId;
	}

	public String getCustomername() {
		return this.customername;
	}

	public void setCustomername(String customername) {
		this.customername = customername;
	}

	public BigDecimal getPcBf() {
		return this.pcBf;
	}

	public void setPcBf(BigDecimal pcBf) {
		this.pcBf = pcBf;
	}

	public String getPcClass() {
		return this.pcClass;
	}

	public void setPcClass(String pcClass) {
		this.pcClass = pcClass;
	}

	public String getPcForeign() {
		return this.pcForeign;
	}

	public void setPcForeign(String pcForeign) {
		this.pcForeign = pcForeign;
	}

	public BigDecimal getPcMoney() {
		return this.pcMoney;
	}

	public void setPcMoney(BigDecimal pcMoney) {
		this.pcMoney = pcMoney;
	}

	public String getPcOwner() {
		return this.pcOwner;
	}

	public void setPcOwner(String pcOwner) {
		this.pcOwner = pcOwner;
	}

	public BigDecimal getPcPeriod() {
		return this.pcPeriod;
	}

	public void setPcPeriod(BigDecimal pcPeriod) {
		this.pcPeriod = pcPeriod;
	}

	public String getPcRemark() {
		return this.pcRemark;
	}

	public void setPcRemark(String pcRemark) {
		this.pcRemark = pcRemark;
	}

	public Date getPcTime() {
		return this.pcTime;
	}

	public void setPcTime(Date pcTime) {
		this.pcTime = pcTime;
	}

	public String getPcType() {
		return this.pcType;
	}

	public void setPcType(String pcType) {
		this.pcType = pcType;
	}

	public String getRepairordernumber() {
		return repairordernumber;
	}

	public void setRepairordernumber(String repairordernumber) {
		this.repairordernumber = repairordernumber;
	}

	
}